<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>报名成功</title>
    <link rel="stylesheet" href="./css/succee.css">

</head>
<body>
<div class="bg">
    <div class="sign_tk" id="suc_tk">
        <div class="sign_suc">
            <div class="suc_title"></div>
            <div class="sign_con">
                <p>报名成功</p>
                <p>ID:<span id="ID"></span></p>
                <p><span id="time">3</span>秒跳转投票页</p>
            </div>
        </div>
    </div>
</div>
</body>
<script src="js/jquery-3.2.1.min.js"></script>
<script>
    $(function () {
        $.post("/success.do",function (data) {
            $("#ID").text(data.id);
            setInterval(function () {
                var time= Number(  $("#time").text());
                $("#time").text(time-1);
                if(time==1){
                    window.location.href = "./votePage.html";
                }

            },1000);
        })
    })
</script>
</html>